package org.example.device.rabbit.produce;

import org.example.base.rabbit.RabbitMsgProducerBase;
import org.example.device.rabbit.event.DeviceNotifyRabbitEvent;
import org.springframework.stereotype.Component;

@Component
public class DeviceRabbitProducerImpl extends RabbitMsgProducerBase<DeviceNotifyRabbitEvent> implements DeviceRabbitProducer {
    @Override
    public void deviceNotify(String exchangeName, String routeKey, DeviceNotifyRabbitEvent deviceNotifyRabbitEvent) {
        this.sendMsg(exchangeName, routeKey, deviceNotifyRabbitEvent);
    }
}
